package com.liao.quart.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.liao.quart.entity.QuartzJob;
import com.liao.quart.entity.QuartzLog;
import com.liao.quart.entity.from.QuartzJobFrom;
import com.liao.quart.entity.from.QuartzLogFrom;

import java.util.List;

/**
* @author JP0020
* @description 针对表【sys_quartz_job(定时任务)】的数据库操作Service
* @createDate 2023-06-01 11:37:32
*/
public interface QuartzJobService extends IService<QuartzJob> {

    void add(QuartzJobFrom from) throws Exception;

    void updateJob(QuartzJobFrom from) throws Exception;

    List<QuartzJob> queryList(QuartzJobFrom from) throws Exception;

    QuartzJob getQuartzJobById(QuartzJobFrom from);

    void execution(QuartzJob quartzJob) throws Exception;

    void updateIsEnable(QuartzJob quartzJob) throws Exception;

    void delete(QuartzJobFrom from) throws Exception;

    List<QuartzLog> queryAllLog(QuartzLogFrom quartzLogFrom) throws Exception;

    void executionSubJob(String[] tasks) throws Exception;
}
